package yijy.threeCountry.threadtest;


import yijy.testclone.User;

/**
 * Created by yijy on 2017/9/20.
 */
public class SayTest1 extends Thread{

    public volatile User user;
    public boolean keep = false;
    public SayTest1(User user) {
        this.user=user;
    }

    @Override
    public void run() {
        saytest1(user);
    }

    public User saytest1(User user){
        user.setAge(191);
        System.out.println(user.getAge());
        keep = true;
        return user;
    }
}
